package gvo.basicDatatypes;

import gvo.presets.Presets;

public class BuchAutorDat {
	private static final long serialVersionUID = 1L;
	private int idBuchAutor;
	private int idBuch;
	private int idAutor;
	public static final String XMLNAME = "BuchAutorDat";
	public static final String[] Titel={"idBuchAutor","idBuch","idAutor"};
	public static final int IDBUCHAUTOR = 0;
	public static final int IDBUCH = 1;
	public static final int IDAUTOR = 2;
	
	public BuchAutorDat(int idBuchAutor, int idBuch, int idAutor) {
		this.idBuchAutor = idBuchAutor;
		this.idBuch = idBuch;
		this.idAutor = idAutor;
	}
	public BuchAutorDat() {
		 this.idBuch = Presets.NOID;
		 this.idBuchAutor = Presets.NOID;;
		 this.idAutor = Presets.NOID;;
	}
	
	public String info(){
		return String.format("BuchAutorDat %10d |  %10d | %10d  ", 
				idBuchAutor, idBuch, idAutor);
	}
	public static String infoTitel(){
		return String.format("BuchAutorDat %10.10s | %10.10s | %10.10s ", (Object[])Titel);
	}
	public int getIdBuchAutor() {
		return idBuchAutor;
	}
	public void setIdBuchAutor(int idBuchAutor) {
		this.idBuchAutor = idBuchAutor;
	}
	public int getIdBuch() {
		return idBuch;
	}
	public void setIdBuch(int idBuch) {
		this.idBuch = idBuch;
	}
	public int getIdAutor() {
		return idAutor;
	}
	public void setIdAutor(int idAutor) {
		this.idAutor = idAutor;
	}
}
